package org.tinygroup.flow;

import java.util.Map;

import org.tinygroup.flow.config.Flow;

public interface FlowManager extends SubFlowManager {
	
	void addFlow(Flow flow);

	void removeFlow(Flow flow);

	void removeFlow(String flowId);

	Flow getFlow(String flowId);

	/**
	 * 组装flow，主要用于处理继承关系
	 */
	void assemble();

	/**
	 * 返回流程Map
	 * 
	 * @return
	 */
	Map<String, Flow> getFlowIdMap();
}
